<%@ page import="ar.com.photo_admin.domain.Album" %>



<div class="fieldcontain ${hasErrors(bean: albumInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="album.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${albumInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: albumInstance, field: 'event', 'error')} required">
	<label for="event">
		<g:message code="album.event.label" default="Event" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="event" name="event.id" from="${ar.com.photo_admin.domain.Event.list()}" optionKey="id" required="" value="${albumInstance?.event?.id}" class="many-to-one"/>
</div>

<%--<div class="fieldcontain ${hasErrors(bean: albumInstance, field: 'photos', 'error')} ">
	<label for="photos">
		<g:message code="album.photos.label" default="Photos" />
		
	</label>
	<g:select name="photos" from="${ar.com.photo_admin.domain.Photo.list()}" multiple="multiple" optionKey="id" size="5" value="${albumInstance?.photos*.id}" class="many-to-many"/>
</div>

--%>
